package scau.jump.securitytrace.init;

import scau.jump.securitytrace.service.AddressService;
import scau.jump.securitytrace.service.ProductService;
import scau.jump.securitytrace.service.RoleService;
import scau.jump.securitytrace.service.SpringUtils;
import scau.jump.securitytrace.service.UserService;

public class Init {
	
	private static UserService userService;
	private static RoleService roleService;
	private static ProductService productService;
	private static AddressService addressService;
	
	public static void initService() {
		userService = (UserService) SpringUtils.getBean("userService");
		roleService = (RoleService) SpringUtils.getBean("roleService");
		productService = (ProductService) SpringUtils.getBean("productService");
		addressService = (AddressService) SpringUtils.getBean("addressService");
	}
			
	/****
	 * 以下为get/set方法
	 */
	public static UserService getUserService() {
		return userService;
	}
	public static RoleService getRoleService() {
		return roleService;
	}
	public static ProductService getProductService() {
		return productService;
	}
	public static AddressService getAddressService() {
		return addressService;
	}
}
